projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959fc60
)
app-chooser-button: make sure to always get a valid iter
author
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 1 Dec 2010 15:29:57 +0000
(16:29 +0100)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Wed, 1 Dec 2010 16:03:51 +0000
(17:03 +0100)
Even in case there are no installed applications for our content type.
gtk/gtkappchooserbutton.c
patch
|
blob
|
history
diff --git
a/gtk/gtkappchooserbutton.c
b/gtk/gtkappchooserbutton.c
index 639520cbf5e12fd7c00ced56ac23ef1c17024447..b510764ab18ab87fa222b52ce8efb8166e03d129 100644
(file)
--- a/
gtk/gtkappchooserbutton.c
+++ b/
gtk/gtkappchooserbutton.c
@@
-262,6
+262,8
@@
gtk_app_chooser_button_populate (GtkAppChooserButton *self)
recommended_apps = g_app_info_get_recommended_for_type (self->priv->content_type);
first = TRUE;
+ get_first_iter (self->priv->store, &iter);
+
for (l = recommended_apps; l != NULL; l = l->next)
{
app = l->data;
@@
-275,7
+277,6
@@
gtk_app_chooser_button_populate (GtkAppChooserButton *self)
if (first)
{
- get_first_iter (self->priv->store, &iter);
first = FALSE;
}
else